package com.fhzn.boss.web;

import com.fhzn.boss.entity.WebResponse;
import com.fhzn.boss.service.AuthService;
import com.fhzn.boss.web.request.AuthQueryRequest;
import com.fhzn.boss.web.vo.AuthQueryResponseVO;
import lombok.RequiredArgsConstructor;
import org.springdoc.api.annotations.ParameterObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 老顾
 * @apiNote 权限管理
 * @since 2024/1/2
 */
@RestController
@RequestMapping("auth")
@RequiredArgsConstructor
public class AuthController {


    private final AuthService authService;

    @GetMapping("/query")
    public WebResponse<AuthQueryResponseVO> query(@ParameterObject AuthQueryRequest request) {
        return WebResponse.success(authService.query(request));
    }
}
